package com.math.aistudykbr.pojo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsyncTask {
    private String id;
    private String status; // PENDING/PROCESSING/COMPLETED/FAILED
    private String fileName;
//    private String subject;

    @JsonIgnore // 序列化的时候忽略这个属性
    private MultipartFile file;
    private String xmindUrl;
    private String pngUrl;  // PNG图片URL
    private String aiResponse;

    private String errorMessage;

    private Long materialId; // 新增: 关联的学习材料ID
}
